<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Administrator LetKit v1.0 Alpha</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<?php
    $cs = Yii::app()->getClientScript();
    $cs->registerCssFile(Yii::app()->theme->baseUrl.'/common/css/main.css');
    $cs->registerCssFile(Yii::app()->theme->baseUrl.'/common/css/form.css');
    $cs->registerCssFile(Yii::app()->theme->baseUrl.'/common/css/button.css');
//    $cs->registerCssFile(Yii::app()->theme->baseUrl.'/common/js/jquery-ui/themes/base/jquery.ui.all.css');
    
    $cs->registerCoreScript('jquery');
    $cs->registerScriptFile(Yii::app()->theme->baseUrl.'/common/js/main.js');
    $cs->registerScriptFile(Yii::app()->theme->baseUrl.'/common/js/jquery-ui/ui/jquery.ui.core.js');
    $cs->registerScriptFile(Yii::app()->theme->baseUrl.'/common/js/jquery-ui/ui/jquery.ui.widget.js');
    $cs->registerScriptFile(Yii::app()->theme->baseUrl.'/common/js/jquery-ui/ui/jquery.ui.mouse.js');
    $cs->registerScriptFile(Yii::app()->theme->baseUrl.'/common/js/jquery-ui/ui/jquery.ui.selectable.js');
    $cs->registerScriptFile(Yii::app()->theme->baseUrl.'/common/js/jquery-ui/ui/jquery.ui.dialog.js');
    $cs->registerScriptFile(Yii::app()->theme->baseUrl.'/common/js/functions.js');
?>
<script type="text/javascript">
$(function() {
    loadAjax('<?php echo Yii::app()->createUrl($this->module->getName() . '/menu'); ?>', '', 'menu_module');
});
</script>
</head>
<body>
<div>
    <div class="let">
        <div class="logo fl"></div>
        <div class="logined fr">
            <div class="fl"><strong>Xin chào:</strong> <?php echo Yii::app()->user->name; ?></div>
            <!--<div class="fl">&nbsp;| <a href="#">Nhiệm vụ</a></div>-->
        <div class="fl">&nbsp;| <?php echo CHtml::link('Thoát', array('//account/logout')); ?></div>
            <div class="letvn"></div>
        </div>
        <div class="letvn"></div>
    </div>
    <div class="letvn"></div>
	<div class="header">
<!--		<div class="search fr">
			<form name="search">
				<label>Tìm kiếm: </label>
				<input type="text" name="txtSearch"/>
				<input type="submit" name="btnSubmit" />
			</form>
		</div>-->
		<div class="topmenu">
			<ul>
				<li><?php echo CHtml::link('Dashboard', array('//dashboard/default')); ?></li>
                <li class="active"><?php echo CHtml::link('Account', array('//account/default')); ?></li>
                <li><?php echo CHtml::link('News', array('//news/KitNewsArticle')); ?></li>
				<li><?php echo CHtml::link('Languages', array('//languages/default')); ?></li>
				<li><?php echo CHtml::link('Permission', array('//srbac')); ?></li>
			</ul>
		</div>
		<div class="subNavi letvn" id="menu_module"></div>
	</div>
	<div class="main_content">
        <?php echo $content; ?>
    </div>
</div>
<div id="loading"></div>
<?php
$this->beginWidget('zii.widgets.jui.CJuiDialog', array(
    'id'=>'dialog',
    // additional javascript options for the dialog plugin
    'options'=>array(
        'title'=>'',
        'autoOpen'=>false,
    ),
));
echo 'Có lỗi trong quá trình tải';
$this->endWidget('zii.widgets.jui.CJuiDialog');
?>
</body>
</html>
